/**
 * 
 */
package com.flux.tms.tm${bean.numMain}srv.t${bean.numMain}${bean.numSub}.impl.dao;

import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.flux.tms.tm${bean.numMain}srv.t${bean.numMain}${bean.numSub}.${detail.javaFlieName}CVal;
import com.flux.scev6.constant.CommonCVal;
import com.flux.scev6.dbopr.BaseDao;
import com.flux.scev6.login.model.LoginInfoObj;


/**
 * 
 * T${bean.numMain}${bean.numSub} ${bean.notesMain} -- ${detail.subName}   -- srv 删除数据   DAO 定义
 * 
 * T${bean.numMain}${bean.numSub} ${detail.subName}
 * 
 * <p>
 * 创建时间：${bean.dayTime}
 * <p>
 * 
 * <p>
 * 修改时间：${bean.dayTime}
 * <p>
 * 
 * @author ${bean.author}
 * 
 * @version V1.0.0
 *
 */
@Repository
public class Delete${detail.javaFlieName}Dao extends BaseDao {
	
	/**
	 * V100(${bean.numTime})  ${bean.author} 初版。
	 */
	@SuppressWarnings("unused")
	private static String verNum = "V100(${bean.numTime})";// 版本号

	/**
	 * 删除  ${detail.subName}  数据
	 * 
	 * 
	 * @date ${bean.dayTime} 
	 * 
	 * @param loginInfoObj  登录信息
	 * @param bizDataMap  提交参数
	 * @return
	 */
	public int delete${detail.javaFlieName}1H(LoginInfoObj loginInfoObj, Map<String, String> bizDataMap) throws Exception{
		// WHERE条件
		LinkedHashMap<String, String> whereDataMap_del = new LinkedHashMap<String, String>();
		whereDataMap_del.put(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk01)?upper_case} , bizDataMap.get(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk01)?upper_case} ));
		whereDataMap_del.put(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk02)?upper_case}, bizDataMap.get(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk02)?upper_case}));
	<#if (detail.pk03)!="">
		whereDataMap_del.put(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk03)?upper_case}, bizDataMap.get(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk03)?upper_case}));
	</#if>
	<#if (detail.pk04)!="">
		whereDataMap_del.put(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk04)?upper_case}, bizDataMap.get(${detail.javaFlieName}CVal.KEYNAME_${(detail.pk04)?upper_case}));
	</#if>
		whereDataMap_del.put(CommonCVal.KEYNAME_OPRSEQFLAG, bizDataMap.get(CommonCVal.KEYNAME_OPRSEQFLAG));
               // 返回影响的记录数
		return deleteRow(loginInfoObj, ${detail.javaFlieName}CVal.${(detail.tableName)?upper_case}, whereDataMap_del);
	}
	
	
}
